/**
 * @Author: douxuefeng
 * @Date: 2020/9/16 下午2:52
 * @File: office_account
 * @Desc:
 */
package wechat_office

import (
	"gitee.com/douxuefeng/go-common/wechat/wechat_office/config"
	"gitee.com/douxuefeng/go-common/wechat/wechat_office/msg"
	"gitee.com/douxuefeng/go-common/wechat/wechat_office/server"
)

type OfficeAccount struct {
	cfg *config.WechatOfficeConfig
}

func NewOfficeAccount(cfg *config.WechatOfficeConfig) *OfficeAccount {
	return &OfficeAccount{cfg}
}
func (oa *OfficeAccount) Serve() *server.OfficeAccountServer {
	return server.NewOfficeAccountServer(oa.cfg)
}
func (oa *OfficeAccount) MsgServe() *msg.OfficeMsg {
	return msg.NewOfficeAccountMsg(oa.cfg)
}